import { axios } from '@/utils/request'

/**
 * api接口列表
 */
const api = {
  index: '/book/ad/index',
  bind: '/book/ad/bind',
  changeStatus: '/book/ad/changeStatus',
  del: '/book/ad/del',
}

/**
 * 列表记录
 */
export function list (params) {
  return axios({
    url: api.index,
    method: 'get',
    params
  })
}


export function bind (data) {
  return axios({
    url: api.bind,
    method: 'post',
    data
  })
}

export function del (params) {
  return axios({
    url: api.del,
    method: 'get',
    params
  })
}

export function changeStatus (params) {
  return axios({
    url: api.changeStatus,
    method: 'get',
    params
  })
}

export function getAdOptions(params) {
  return axios({
    url: api.getAdOptions,
    method: 'get',
    params
  })
}

